MPI_COMPILE_FLAGS = $(shell mpicc --showme:compile)
MPI_LINK_FLAGS = $(shell mpicc --showme:link) -fopenmp

MY_APP=jacobi_paralelo.c Functions.c
MY_EXEC=j_par
CC=gcc-4.2

all: $(MY_APP)
	$(CC) $(MPI_COMPILE_FLAGS) $(MY_APP) $(MPI_LINK_FLAGS) -o $(MY_EXEC)

